package jgl.vajra.management.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class CarMemberBean implements Parcelable {

    public CarMemberBean() {
    }

    public int tag;
    public String name;
    public String alias;
    public String logo;
    public String remainDay;
    public String picture;
    public String carNickname;

    protected CarMemberBean(Parcel in) {
        tag = in.readInt();
        name = in.readString();
        alias = in.readString();
        logo = in.readString();
        remainDay = in.readString();
        picture = in.readString();
        carNickname = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(tag);
        dest.writeString(name);
        dest.writeString(alias);
        dest.writeString(logo);
        dest.writeString(remainDay);
        dest.writeString(picture);
        dest.writeString(carNickname);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CarMemberBean> CREATOR = new Creator<CarMemberBean>() {
        @Override
        public CarMemberBean createFromParcel(Parcel in) {
            return new CarMemberBean(in);
        }

        @Override
        public CarMemberBean[] newArray(int size) {
            return new CarMemberBean[size];
        }
    };
}
